var mongoose = require('../db_con')
var uuid = require('uuid')

//SCL测试结果表
var SCLtestschema = mongoose.Schema({
    test_id: {
        type: String,
        default: uuid.v1,
    },//测试结果id,自动生成
    person_id: {
        type: String,
        require: true
    },//学生学号
    option: [
        {type: String}
    ],//本次测试的选项,以数组形式存储
    time: {
        type: String
    }//本次测试所做的时间
})

var SCLtestModel = mongoose.model('SCLtest', SCLtestschema, 'SCLtests')

module.exports = SCLtestModel;//暴露模块